const service = require("../service/cultureService")
const controller = {

    // 查找新闻分类表的数据
    findCulture(req, res) {
        const { cid } = req.params
        service.findCulture(cid, (data) => {
            res.send({
                status: data ? data.length ? 200 : 400 : 500,
                msg: data.length ? "查询成功" : "查询失败",
                data: data
            })
        })
    },
}

module.exports = controller